package com.reason.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.reason.user.dao.EconomicsMapper;
import com.reason.user.pojo.Condition;
import com.reason.user.pojo.Economics;
import com.reason.user.service.EconomicsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * @author  yulongjun
 * @date 2020/6/29 10:42 下午
 */
@Service
public class EconomicsServiceImpl implements EconomicsService {
    @Autowired
    private EconomicsMapper economicsMapper;

    @Override
    public List<Economics> findBrandList() {
        QueryWrapper queryWrapper=new QueryWrapper();
        List<Economics> economics = economicsMapper.selectList(null);

        return economics;
    }

    @Override
    public  Economics findByID(Long id) {
        return economicsMapper.selectById(id);
    }
}
